<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<link rel="stylesheet" href="../../static/layui/css/layui.css">
<script src="../../static/js/jquery-1.12.4.min.js"></script>
<script src="../../static/layui/layui.js"></script>
<script type="text/javascript" src="../../static/js/dataTable.js"></script>
</head>
<body style="background: #ffffff">
	<input type="hidden"  id="uuid" value="${uuid}"> 
	<table class="layui-hide" id="diction"></table>
	<script type="text/html" id="toolbarDemo">
	<div class="layui-btn-container">
		<button class="layui-btn layui-btn-sm" lay-event="add_panel">新增</button>
  	</div>
	</script> 
	<script type="text/html" id="barDemo">
		<button class="layui-btn layui-btn-sm" lay-event="add_panel">删除</button>
	</script>
	<script>
layui.use('table', function(){
  var uuid = $("#uuid").val();
  var table = layui.table;
  
  table.render({
    elem: '#diction',
    title:'数据字典'
    ,url:'../../dict/dictionary/datapage?uuid='+uuid,
	toolbar:'#toolbarDemo'
    ,cellMinWidth: 80 //全局定义常规单元格的最小宽度，layui 2.2.1 新增
    ,cols: [[
    	{field: 'id', title: 'ID', hide: true, usersize: true, sort: true},
		{field: 'sort', title: '排序'},
		{field: 'name', title: '参数名称'},
		{field: 'code', title: '代码'},
		{fixed: 'right', title: '操作', toolbar: '#barDemo'}
    ]]
  });
});
</script>

</body>
</html>